package com.ruoyi.safety.service;

import java.util.List;
import com.ruoyi.safety.domain.SafetyPointAbnormal;

/**
 * 测点异常信息数据Service接口
 *
 * @author ruoyi
 * @date 2024-10-30
 */
public interface ISafetyPointAbnormalService
{
    /**
     * 查询测点异常信息数据
     *
     * @param pointCode 测点异常信息数据主键
     * @return 测点异常信息数据
     */
    public SafetyPointAbnormal selectSafetyPointAbnormalByPointCode(String pointCode);

    /**
     * 查询测点异常信息数据列表
     *
     * @param safetyPointAbnormal 测点异常信息数据
     * @return 测点异常信息数据集合
     */
    public List<SafetyPointAbnormal> selectSafetyPointAbnormalList(SafetyPointAbnormal safetyPointAbnormal);

    /**
     * 新增测点异常信息数据
     *
     * @param safetyPointAbnormal 测点异常信息数据
     * @return 结果
     */
    public int insertSafetyPointAbnormal(SafetyPointAbnormal safetyPointAbnormal);

    /**
     * 修改测点异常信息数据
     *
     * @param safetyPointAbnormal 测点异常信息数据
     * @return 结果
     */
    public int updateSafetyPointAbnormal(SafetyPointAbnormal safetyPointAbnormal);

    /**
     * 批量删除测点异常信息数据
     *
     * @param pointCodes 需要删除的测点异常信息数据主键集合
     * @return 结果
     */
    public int deleteSafetyPointAbnormalByPointCodes(String[] pointCodes);

    /**
     * 删除测点异常信息数据信息
     *
     * @param pointCode 测点异常信息数据主键
     * @return 结果
     */
    public int deleteSafetyPointAbnormalByPointCode(String pointCode);

    int getAbnormalTotal(String sensorTypeName, String abnormalType);

    int getSensorDisconnectionTotal();

    List<SafetyPointAbnormal> getFaultTotal();

    int getDeviceAbnormalTotal(String sensorTypeName);

    List<String> getWscxValueList();

    List<String> getYyhtValueList();

    int getOneDayAbnormalTotal();

    List<String> getDyDpWscxValueList();
}
